package team.seekers.hula.teamwork.todo.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

/**
 * @author hbc
 * @author yiming
 */
@Data
public class TodoTeamUpdatePA {

    /*todoId*/
    @NotBlank(message = "id不能为空")
    private String id;

    /*todo标题*/
    @NotBlank(message = "待办标题不能为空")
    @Size(max = 50, message = "标题长度不能超过50")
    private String title;

    /*todo截止时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date date;

    private List<String> tagIds;

}
